<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1 , user-scalable=no">
    <title>图片分享社区后台</title>
   <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/CSS/bootstrap.css" />
  <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/CSS/bootstrap-maizi.css" />
</head>
<body>
<!--导航-->
<nav class="navbar navbar-default">
    <div class="container">
        <!--小屏幕导航按钮和logo-->
        <div class="navbar-header">
            <button class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a href="head.action" class="navbar-brand">图片分享社区后台</a>
        </div>
        <!--小屏幕导航按钮和logo-->
        <!--导航-->
        <div class="navbar-collapse collapse">
             <ul class="nav navbar-nav">
                <li ><a href="head.action"><span class="glyphicon glyphicon-home"></span>&nbsp;&nbsp;后台首页</a></li>
                <li ><a href="usermanger.action"><span class="glyphicon glyphicon-user"></span>&nbsp;&nbsp;用户管理</a></li>
                <li class="active"><a href="contentmanger.action"><span class="glyphicon glyphicon-list-alt"></span>&nbsp;&nbsp;内容管理</a></li>
                <li><a href="labelmanger.action"><span class="glyphicon glyphicon-tags"></span>&nbsp;&nbsp;标签管理</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
               <li class="dropdown">
                    <a id="dLabel" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                       <s:property value="#session.USER_NAME"/>
                        <span class="caret"></span>
                    </a>
                    <ul class="dropdown-menu" aria-labelledby="dLabel">
                       <li><a href="<%=basePath%>"><span class="glyphicon glyphicon-screenshot"></span>&nbsp;&nbsp;前台首页</a></li>
                        
                        <li><a href="personsetting.action?id=<s:property value="#session.USER_ID"/>"><span class="glyphicon glyphicon-cog"></span>&nbsp;&nbsp;个人设置</a></li>
      
                    </ul>
                </li>
                <li><a href="logout.action"><span class="glyphicon glyphicon-off"></span>&nbsp;&nbsp;退出</a></li>
            </ul>
        </div>
        <!--导航-->

    </div>
</nav>
<!--导航-->

<div class="container">
    <div class="row">
        <div class="col-md-2">
           <div class="list-group">
        <a href="contentmanger.action" class="list-group-item active">内容管理</a>
        <a href="noticemanger.action" class="list-group-item">公告管理</a>
        <a href="noticepublic.action" class="list-group-item ">发布公告</a>
    </div>
        </div>
        <div class="col-md-10">
            <div class="page-header">
                <h1>公告编辑</h1>
            </div>  
  <s:iterator value="noticelist" id="notice">        
    <form action="updatenotice.action?id=<s:property value='#notice.noticeid'/>" method="post">
                    <div class="form-group">
                        <label for="addname">公告ID</label>
                        <input disabled name="noticeid" type="text" id="addname" class="form-control" placeholder="公告ID" value=<s:property value='#notice.noticeid' />>
                    </div>
                    <div class="form-group">
                        <label for="addpassword">发布者ID公告</label>
                        <input disabled type="text" name="personid" id="addpassword" class="form-control" placeholder="发布者ID" value=<s:property value='#notice.personid' />>
                    </div>
                    <div class="form-group">
                        <label for="addpassword1">公告主题</label>
                        <input type="text" id="addpassword1" name="title" class="form-control" placeholder="公告主题" value=<s:property value='#notice.title' />>
                    </div>
                    <div class="form-group">
                        <label for="addemail">公告内容</label>
                        <textarea row="3" class="form-control" name="content" placeholder="公告内容" ><s:property value='#notice.content' /></textarea>
                    </div>                                                    
                <button type="submit" class="btn btn-info">更新</button>           
             </form>
 
</s:iterator> 
</div>
</div>
</div>
<!--footer-->
<footer>
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <p>
                    Copyright&nbsp;©&nbsp;2012-2015&nbsp;&nbsp;www.sharephoto.com&nbsp;&nbsp;粤ICP备13014270号-4
                </p>
            </div>
        </div>
    </div>
</footer>
<!--footer-->


<script src="${pageContext.request.contextPath}/JS/jquery-1.12.3.min.js"></script>
<script src="${pageContext.request.contextPath}/JS/bootstrap.min.js"></script>
</body>
</html>